package com.feng.cloud.system.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.feng.cloud.system.entity.Column;
import com.feng.cloud.system.entity.Table;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName GeneratorMapper
 * @Description TODO
 * @Author Better Feng
 * @Date 2019/12/23 13:56
 * @Version 1.0
 **/
public interface GeneratorMapper {
    List<String> getDatabases();

    IPage<Table> getTables(Page page, @Param("tableName") String tableName, @Param("schemaName") String schemaName);

    List<Column> getColumns(@Param("schemaName") String schemaName, @Param("tableName") String tableName);
}
